#include <iostream>
#include <jsoncpp/json/json.h>
#include <memory>
#include <sstream>

using namespace std;

static bool Serialize(const Json::Value& value, std::string& body) {
        Json::StreamWriterBuilder swb;
        std::unique_ptr<Json::StreamWriter> sw(swb.newStreamWriter());

        std::stringstream ss;
        int ret = sw->write(value, &ss);
        if (ret != 0) {
            return false;
        }
        body = ss.str();
        return true;
    }

    static bool UnSerialize(const std::string& body, Json::Value* value) {
        Json::CharReaderBuilder crb;
        std::unique_ptr<Json::CharReader> cr(crb.newCharReader());

        std::string err;
        bool ret = cr->parse(body.c_str(), body.c_str() + body.size(), value, &err);
        if (ret == false) {                                                                                                                                                                  
            return false;
        }
        return true;
    }

int main()
{
#if 0
    Json::Value v;
    v["name"] = "cnl";
    v["telnum"] = "13547136494";
    Json::Value vv;
    vv["nam"] = "yw";
    vv["telnm"] = "13244";
    vv["c"] = v;
    Json::Value arr;
    arr.append(v);
    arr.append(vv);
    cout<<arr;
#endif
    Json::Value v;
    v["m"] = 1;
    cout<<v["m"];
    return 0;
}